<template>
  <router-view />
</template>

<script setup>
import {useUserInfoStore} from "./store/UserInfoStore";
import {postRequest} from "./util/requestUtil";
import {INFO_API} from "./api/login";
import {onMounted} from "vue";

const userInfoStore = useUserInfoStore();

onMounted(()=>{
  postRequest(INFO_API, {},
      (data)=>{userInfoStore.setUserInfo(data.info);},
      null, null, false)
})

</script>

<style>
@import "./assets/css/common/common.css";

body{
  background-color: #f4f5f7!important;
}

</style>
